package com.igeek.d0612.test2;

/**
 * @Author: zhiyu
 * @Date:16:31
 * @DESC:
 */
public class AccountLockTest {
    public static void main(String[] args) {
        AccountLock account = new AccountLock("张三",10000.0);
        new Thread(()->{
            account.withdraw(500);
        },"线程1").start();
        new Thread(()->{
            account.withdraw(6000);
        },"线程2").start();
        new Thread(()->{
            account.withdraw(1000);
        },"线程3").start();
    }
}
